package com.example.basic02;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description
 * @Date 2021/7/17
 * @Created by Jonathan
 */
public class RevealList {
    static List<Object> list = new ArrayList<>();

    public void addList() {
        for (int i = 0; i < 10; i++) {
            Object o = new Object();
            list.add(o);
        }
    }

    public void readList() {
        for (Object o : list) {
            System.out.println(o);
        }
    }


    public static void main(String[] args) {
        RevealList list = new RevealList();
        list.addList();
        list.readList();
    }
}
